package com.xzy.mapper;

import com.xzy.custom.Page;
import com.xzy.entities.BookInformation;
import com.xzy.web.form.BookInformationForm;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * TODO70
 *
 * @author Administrator
 * ClassName: BookInfromationMapper
 * date: 2021/12/3 14:50
 */
@Repository
public interface BookInformationMapper {

    List<BookInformation> findAllBookInformation(@Param("page")Page page,@Param("name") String name);

    Integer findBookInformationCount(@Param("page") Page page,@Param("name") String name);

    void deleteById(int parseInt);

    BookInformation findById(Integer id);

    void saveFile(@Param("picture") BookInformation picture);

    BookInformation findByUuid(@Param("uuid") String uuid);

    void updataById(@Param("form") BookInformationForm form);

    void insertInformation(@Param("form") BookInformationForm form);

    void updateFileById(@Param("picture") BookInformation picture,@Param("id") Integer id);

    List<BookInformation> findAllBookInformation1();

    List<BookInformation> findByBookName(@Param("bookName") String bookName);

    List<BookInformation> findBookInformationList();

    BookInformation xwfindById(@Param("id") Integer id);

    List<BookInformation> findByBookId(@Param("bookId") List<Integer> bookId, @Param("userId")Integer userId);

    List<BookInformation> findByBookIdAndBookName(@Param("bookId") List<Integer> bookId, @Param("bookName") String bookName, @Param("userId") Integer userId);

    BookInformation xwfindBorrowById(@Param("borrowId") Integer borrowId);

    List<BookInformation> findAllBook();
}
